<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/8/17
  Time: 9:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>我的申请</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/js/jquery-3.6.0.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
    <!-- Bootstrap -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.css"/>
    <%--引入echarts--%>
    <script src="${pageContext.request.contextPath}/js/echarts.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/index.css">
    <%--    revealFull--%>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/re_approve/revealFull.css">
</head>
<script>
    console.log(`${items}`)
</script>
<body>
<%@include file="../pub/header.jsp"%>
<div class="header">
    <div class="nav">
        <div class="container">

            <div class="row">
                <a class="col-md-3 col-xs-6" href="${pageContext.request.contextPath}/index">首&nbsp;页</a>
                <a class="col-md-3 col-xs-6 " href="${pageContext.request.contextPath}/user/news">新闻资讯</a>
                <a class="col-md-3 col-xs-6" href="${pageContext.request.contextPath}/re_approve/item">办事大厅</a>
                <a class="col-md-3 col-xs-6"
                   href="${pageContext.request.contextPath}/item/revealFull">公示信息</a>
            </div>
        </div>
    </div>
</div>

<div class="panel panel-white" align="center">
    <div class="panel-heading clearfix">
        <h4 class="panel-title">我的申请</h4>
    </div>
    <div class="panel-body">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>序号</th>
                <th>项目代码</th>
                <th>审批事项</th>
                <th>审批结果</th>
            </tr>
            </thead>
            <tbody>
            <c:if test="${items!=null}">
                <c:forEach items="${items}" var="var"  varStatus="varStatus">
                    <tr style="text-align: center" onclick="location.href='${pageContext.request.contextPath}/re_approve/approveInfo?ItemId=${var.id}'">
                        <th scope="row">${varStatus.count}</th>
                        <td>${var.item.code}</td>
                        <td>${var.item.name}</td>
                        <td>${var.status==3?"审核已通过":var.status==2?"正在审核中":"审核不通过"}</td>
                    </tr>
                </c:forEach>
            </c:if>
            <c:if test="${items ==[]}">
                <tr>
                   <th colspan="5"><div align="center">暂无申请无数据</div></th>
                </tr>
            </c:if>

<%--            <tr>--%>
<%--                <th scope="row">2</th>--%>
<%--                <td>Jacob</td>--%>
<%--                <td>Thornton</td>--%>
<%--                <td>@fat</td>--%>
<%--                <td>@fat</td>--%>
<%--            </tr>--%>
<%--            <tr>--%>
<%--                <th scope="row">3</th>--%>
<%--                <td>Larry</td>--%>
<%--                <td>the Bird</td>--%>
<%--                <td>@twitter</td>--%>
<%--                <td>@twitter</td>--%>
<%--            </tr>--%>
<%--            <tr>--%>
<%--                <th scope="row">4</th>--%>
<%--                <td>Larry</td>--%>
<%--                <td>the Bird</td>--%>
<%--                <td>@twitter</td>--%>
<%--                <td>@twitter</td>--%>
<%--            </tr>--%>
<%--            <tr>--%>
<%--                <th scope="row">5</th>--%>
<%--                <td>Larry</td>--%>
<%--                <td>the Bird</td>--%>
<%--                <td>@twitter</td>--%>
<%--                <td>@twitter</td>--%>
<%--            </tr>--%>
            </tbody>
        </table>
    </div>
</div>
<%@include file="../pub/footer.jsp"%>
</body>
</html>
